---
layout: example
categories: example/v1.0.0
version: v1.0.0
title: Legend
description: If your map was created in <a href='https://mapbox.com/tilemill/'>TileMill</a> and contains legend content or the <a href='https://www.mapbox.com/guides/an-open-platform/#tilejson'>tilejson</a> of a Map ID contains a legend value, a legend is displayed automatically.
tags:
  - legend
---
<div id='map'></div>

<script>
  L.mapbox.map('map', 'examples.map-zmy97flj');
</script>
